<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-zhDeptGame-add">

			<div class="form-group">
				<label class="col-sm-3 control-label">站点：</label>
				<div class="col-sm-8">
					<select id="deptId" name="deptId" class="form-control m-b" >
						<option th:each="zhDept:${zhDepts}" th:value="${zhDept.deptId}" th:text="${zhDept.name}" ></option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">游戏名称：</label>
				<div class="col-sm-8">
					<select id="gameId" name="gameId" class="form-control m-b" >
						<option th:each="item:${zhGameInfos}" th:value="${item.id}" th:text="${item.name}" ></option>
					</select>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">是否热搜：</label>
				<div class="col-sm-8">
					<select id="ifHot" name="ifHot" class="form-control m-b" >
						<option value="0">否</option>
						<option value="1">是</option>
					</select>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">是否推荐：</label>
				<div class="col-sm-8">
					<select id="ifRecommand" name="ifRecommand" class="form-control m-b" >
						<option value="0">否</option>
						<option value="1">是</option>
					</select>
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/zhDeptGame"
		$("#form-zhDeptGame-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-zhDeptGame-add').serialize());
	        }
	    }
	</script>
</body>
</html>
